package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel.completeRFCSubs.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.controller.completeRFC.SetRFCtoReadyForApprovalThread;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel.CompleteRFCPanel;

public class ReadyfoeApprovalCompleteRFCPanelactionListener implements ActionListener{

	
	private CompleteRFCPanel completeRFCPanel;
	private SetRFCtoReadyForApprovalThread readyForApprovalThread;

	public ReadyfoeApprovalCompleteRFCPanelactionListener(CompleteRFCPanel completeRFCPanel){
		this.completeRFCPanel = completeRFCPanel;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {

		this.readyForApprovalThread = new SetRFCtoReadyForApprovalThread(this.completeRFCPanel);
		this.readyForApprovalThread.start();
		
		
	}

}
